import { createSSRApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import 'uno.css';
// import dayjs from 'dayjs'

import uvUI from '@/uni_modules/uv-ui-tools';

import tools from '@/utils/common';

export function createApp() {
	const app = createSSRApp(App);

	app.use(router);
	app.use(store);

	// 添加全局属性 $tools
	app.config.globalProperties.$tools = tools;

	return {
		app,
	};
}
